﻿using AutoMapper;
using KWT.DRG_DIP.DTO.Basic.Dept;
using KWT.DRG_DIP.PO.Basic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KWT.DRG_DIP.Mapper.Basic
{
    public class DeptMapper: Profile
    {
        public DeptMapper()
        {
            CreateMap<Sys_Category, InAddOrUpdate>()
                .ForMember(d => d.CategoryID, opt => opt.MapFrom(src => src.CategoryID))
                .ForMember(d => d.Code, opt => opt.MapFrom(src => src.Code))
                .ForMember(d => d.Name, opt => opt.MapFrom(src => src.Name))
                .ReverseMap();
        }
    }
}
